package com.adtech.adms.commons.util;

import org.apache.log4j.Logger;

import com.adtech.adms.system.SystemConstants.BusinessInstance;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.core.JsonProcessingException;
import com.fasterxml.jackson.databind.ObjectMapper;

/**
 * Jackson JSON 解析
 * 
 * @author Dormin
 * @since 2012-10-17
 * 
 * @Copyright (C) 2012 天津天大求实电力新技术股份有限公司 版权所有
 */
public class JacksonUtil {
	private static final Logger log = Logger.getLogger(JacksonUtil.class);
	
	public static ObjectMapper getObjectMapper() {
		ObjectMapper mapper = new ObjectMapper();
		mapper.setSerializationInclusion(JsonInclude.Include.NON_NULL);
		return mapper;
	}
	
	

}
